<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>4-console.dir打印对象信息</title>
</head>
<body>
	<div class="box"></div>
	<script type="text/javascript">
		var box = document.querySelector('.box');
		console.log(box);
		
		//构造函数定义，是为了解决重复造数据
		function User(username,password){
			this.username = username;
			this.password = password;
		}
		var user = new User('李宝莉',123456);
		console.dir(user);
	</script>
</body>
</html>